package com.yanmaohu.nikita.data.others;

import com.yanmaohu.nikita.data.expression.Expression;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ArrayElementList {

    private List<Expression> arrayElementList;

    public ArrayElementList(List<Expression> arrayElementList) {
        this.arrayElementList = arrayElementList;
    }

    public boolean isEmpty() {
        return arrayElementList == null || arrayElementList.isEmpty();
    }

    public int size() {
        return arrayElementList.size();
    }

    public Expression get(int index) {
        return arrayElementList.get(index);
    }

}
